<!--
 * @Author: your name
 * @Date: 2020-12-28 17:53:01
 * @LastEditTime: 2020-12-29 14:27:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basicvue\vuehtml\vueindex.html
-->

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/css/common.css">
    <link rel="stylesheet" href="../assets/css/vue.css">
    <script src="../assets/js/vue.js"></script>
</head>
<body>
    <div id="app">
        <a href="../index.html" class="retu">BACK</a>
        <h1>{{message}}</h1>
        <p>
            <a href="#" v-if="isLogin" class="loginSuccess">你好:liuhouse</a>
            <a v-else class="login">请登录后再进行操作</a>
        </p>
        <p v-show="isShow">是true的话我就显示了，不是true的话就不显示了</p>
    </div>
    <script>
        let app = new Vue({
            el : '#app',
            data:{
                message : 'v-if判断是否加载',
                isLogin:false,
                isShow:true
            }
        });
    </script>
</body>
</html>